package photostock.view;

import photostock.model.UserItem;

public class AlbumWidget extends Widget {

	private static final long serialVersionUID = 20090501L;
	
	public AlbumWidget(UserItem item) {
		super("div", "album", "album");
		Widget galleryDiv = new Widget("div", "gallery", "gallery");
		galleryDiv.setContent(WidgetFactory.getGallery(item.getChildrenItems()));
		Widget focusedDiv = new Widget("div", "photo", "focusedImg");
		focusedDiv.setContent(WidgetFactory.getFocused(item.getChildrenItems().elementAt(0)));
		addContent(galleryDiv);
		addContent(focusedDiv);
		
	}
	
}
